package com.hzqy.persistence.dao.special;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.PmsUserVo;
import com.hzqy.web.vo.SysProductVo;
import com.hzqy.web.vo.special.SpecialInfoVo;
import com.hzqy.web.vo.special.SpecialViewVo;
@Repository
public class SpecialDao extends PersistenceDao<PmsUserVo, Integer>{

	public int insertSpecial(SpecialInfoVo specialInfoVo) {
		return getSqlSession().insert(this.getNamespace() + "insertSpecial", specialInfoVo);
	}

	public SpecialInfoVo selectSpecial(String f_si_id) {
		return getSqlSession().selectOne(this.getNamespace() + "selectSpecial", f_si_id);
	}

	public int selectSpecialCount(SpecialInfoVo specialInfoVo) {
		return getSqlSession().selectOne(this.getNamespace() + "selectSpecialCount", specialInfoVo);
	}

	public List<SpecialInfoVo> selectSpecialList(Map<String, Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectSpecialList",map);
	}

	public int updateSpecial(SpecialInfoVo specialInfoVo) {
		return getSqlSession().update(this.getNamespace() + "updateSpecial", specialInfoVo);
	}

	public int deleteSpecial(int f_si_id) {
		return getSqlSession().delete(this.getNamespace() + "deleteSpecial", f_si_id);
	}

	public int deleteSpecialViewById(int f_sv_siid) {
		return getSqlSession().delete(this.getNamespace() + "deleteSpecialViewById",f_sv_siid);
	}

	public Object insertSpecialView(SpecialViewVo vo) {
		return getSqlSession().insert(this.getNamespace() + "insertSpecialView", vo);
	}

	public List<SpecialViewVo> selctSpecialViewList(String f_sv_siid) {
		return getSqlSession().selectList(this.getNamespace() + "selctSpecialViewList",f_sv_siid);
	}
	
	public List<SpecialInfoVo> selectSpecialListExcel(Map<String, Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectSpecialListExcel",map);
	}
	
	public List<SysProductVo> selectSysProduct() {
		return getSqlSession().selectList(this.getNamespace() + "selectSysProduct");
	}

}
